package com.vhall.component.plugin.common.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ExportTitleTypeEnum {

    EXPORT_TITLE_TYPE_PV(1, "观看次数"),
    EXPORT_TITLE_TYPE_UV(2, "观看人数"),
    EXPORT_TITLE_TYPE_NO_FILTER(3, "未过滤消息"),
    EXPORT_TITLE_TYPE_FILTER(4, "被过滤消息"),
    EXPORT_TITLE_TYPE_SENSITIVE(5, "敏感词信息"),
    EXPORT_TITLE_TYPE_QUESTION_LIST(6, "问卷列表"),
    EXPORT_TITLE_TYPE_QUESTION_ONESELF(7, "单独问卷详情"),
    EXPORT_TITLE_TYPE_EXAM_LIST(8, "考试列表"),
    EXPORT_TITLE_TYPE_EXAM_ONESELF(9, "单独考试详情"),
    EXPORT_TITLE_TYPE_LOTTERY_LIST(10, "抽奖信息"),
    EXPORT_TITLE_TYPE_LOTTERY_DETAILS(11, "抽奖标题"),
    EXPORT_TITLE_TYPE_VOTE_LIST(12, "投票信息"),
    EXPORT_TITLE_TYPE_VOTE_ONESELF(13, "投票名称");

    private Integer key;
    private String value;

    /**
     * 根据key获取名称
     *
     * @param key:导出类型
     * @return: java.lang.String
     **/
    public static String getExportDetails(Integer key) {
        ExportTitleTypeEnum[] exportTitleTypeEnums = values();
        for (ExportTitleTypeEnum equityTableEnum : exportTitleTypeEnums) {
            if (equityTableEnum.getKey().equals(key)) {
                return equityTableEnum.getValue();
            }
        }
        return null;
    }
}
